package net.sesami.nhg.ebd.batch.domain.hibernate;

import java.io.Serializable;

public class POItemAttachmentPK implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer POID;
	private Integer LineNum;
	private Integer POItemAttachmentID;

	public Integer getPOID() {
		return POID;
	}

	public void setPOID(Integer pOID) {
		POID = pOID;
	}

	public Integer getLineNum() {
		return LineNum;
	}

	public void setLineNum(Integer lineNum) {
		LineNum = lineNum;
	}

	public Integer getPOItemAttachmentID() {
		return POItemAttachmentID;
	}

	public void setPOItemAttachmentID(Integer pOItemAttachmentID) {
		POItemAttachmentID = pOItemAttachmentID;
	}

	@Override
	public boolean equals(Object arg0) {
		if (arg0 == null)
			return false;
		if (!(arg0 instanceof POItemAttachmentPK))
			return false;
		POItemAttachmentPK arg1 = (POItemAttachmentPK) arg0;
		return (this.POID.intValue() == arg1.getPOID().intValue())
				&& (this.LineNum.intValue() == arg1.getLineNum().intValue() && this.POItemAttachmentID
						.intValue() == arg1.getPOItemAttachmentID().intValue());
	}

	@Override
	public int hashCode() {
		int hsCode;
		hsCode = POID.hashCode();
		hsCode = 19 * hsCode + LineNum.hashCode();
		hsCode = 19 * hsCode + POItemAttachmentID.hashCode();
		return hsCode;
	}
}
